package a8.base.service;

import a8.base.dao.TSyncdataDao;
import a8.base.dao._BaseDao;



public class TSyncdataService {
	    // 单例模式 start
		private volatile static TSyncdataService instance = null;
		private TSyncdataDao tSyncdataDao;
		
		private TSyncdataService() {
			tSyncdataDao = (TSyncdataDao) _BaseDao.ac.getBean("TSyncdataDao");
			

		}
		public static TSyncdataService getInstance() {
			if (instance == null) {
				synchronized (TSyncdataService.class) {// 1
					if (instance == null) {// 2
						instance = new TSyncdataService();// 3
					}
				}
			}
			return instance;
		}
		// 单例模式 end
		public TSyncdataDao gettSyncdataDao() {
			return tSyncdataDao;
		}
		
		
}
